//---------------------------------------------------------------------------

#ifndef Unit_editardisH
#define Unit_editardisH
//---------------------------------------------------------------------------
#include <stdio.h>
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Mask.hpp>

#include "Unit_principal.h"
//---------------------------------------------------------------------------

class TFmEditarDis : public TForm
{
__published:	// IDE-managed Components
        TPanel *PanelBotoes;
        TLabel *Label1;
        TBitBtn *BtnVoltar;
        TBitBtn *BtnAnterior;
        TBitBtn *BtnProximo;
        TPanel *PanelBotoes2;
        TBitBtn *BtnEditar;
        TBitBtn *BtnConcluir;
        TBitBtn *BtnCancelar;
        TPanel *PanelEdicao;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TLabeledEdit *EdNomeDis;
        TEdit *EdCodigo;
        TLabeledEdit *EdProfessor;
        TRadioGroup *RGPeriodo;
        TLabeledEdit *EdNumAulas;
        TMaskEdit *EdInicio;
        TMaskEdit *EdTermino;
        void __fastcall BtnVoltarClick(TObject *Sender);
        void __fastcall FormPaint(TObject *Sender);
        void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
        void __fastcall BtnAnteriorClick(TObject *Sender);
        void __fastcall BtnProximoClick(TObject *Sender);
        void __fastcall BtnCancelarClick(TObject *Sender);
        void __fastcall BtnEditarClick(TObject *Sender);
        void __fastcall BtnConcluirClick(TObject *Sender);
private:	// User declarations
  FILE *lisdis;
  void LerRegistro(DISCIPLINA *disciplina);

public:		// User declarations
        __fastcall TFmEditarDis(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFmEditarDis *FmEditarDis;
//---------------------------------------------------------------------------
#endif
